<?php

namespace Sisesporte\Repository;

use Doctrine\ORM\EntityRepository;

class ModalidadeRepository extends EntityRepository {

    public function fetchPairs() {
        $entities = $this->findAll();
        $array = array();

        foreach ($entities as $entity) {
            $array[$entity->getSqModalidade()] = $entity->getNoModalidade();
        }

        asort($array);
        return $array;
    }

}
